// 系统管理--》角色管理
import http from './http.js' 

// 获取列表数据
const list = (pageNum = 1, pageSize = 10) => {
  return http.get('/system/role/list', {
    params: {
      pageNum,
      pageSize
    }
  });
};

// 搜索功能 获取列表数据
const listSearch = (pageNum = 1, pageSize = 10, roleName,roleKey,status,beginTime,endTime) => {
  return http.get('/system/role/list', {
    params: {
      pageNum,
      pageSize,
      roleName,
      roleKey,
      status,
      "params%5BbeginTime%5D": beginTime,
      "params%5BendTime%5D": endTime 
    }
  });
};

export default {
  list,
  listSearch
}